/* 基础样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 表单样式 */
form {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

form h2 {
    margin-top: 0;
    color: #333;
}

form div {
    margin-bottom: 10px;
}

label {
    display: inline-block;
    width: 80px;
    font-weight: bold;
}

input[type="text"] {
    padding: 8px;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

button:hover {
    background-color: #45a049;
}

/* 表格标题区域 */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#toggleTableBtn {
    background-color: #607d8b;
    padding: 5px 10px;
    font-size: 14px;
}

#toggleTableBtn:hover {
    background-color: #455a64;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    display: none; /* 初始隐藏 */
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #4CAF50;
    color: white;
}

tr:hover {
    background-color: #f5f5f5;
}

/* 表单按钮区域 */
.form-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

#modifyBtn {
    background-color: #2196F3;
}

#modifyBtn:hover {
    background-color: #0b7dda;
}

#deleteBtn {
    background-color: #f44336;
}

#deleteBtn:hover {
    background-color: #d32f2f;
}

#downloadBtn {
    background-color: #9c27b0;
}

#downloadBtn:hover {
    background-color: #7b1fa2;
}

#cancelQuery {
    background-color: #f44336;
}

#cancelQuery:hover {
    background-color: #d32f2f;
}
